package com.bjesc_b2c.app.appraiset.adapter;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.R;

import java.util.List;

import app.pinggushi.bjesc.com.baserecyclerview.adapter.CommonAdapter;
import app.pinggushi.bjesc.com.baserecyclerview.adapter.base.ViewHolder;
import master_bean.CarDetailsBean;

/**
 * Created by yidong on 2017/8/4.
 */

public class CarDetailsImageAdapter extends CommonAdapter<CarDetailsBean.CarImageBean> {


    public CarDetailsImageAdapter(Context context, int layoutId, List<CarDetailsBean.CarImageBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convertView(ViewHolder holder, CarDetailsBean.CarImageBean bean, int position) {
        holder.setText(R.id.tv_photo_name, bean.getClass_name()+"("+bean.getCount()+")");
        holder.setFrescoUrl(R.id.fresc_car_source_photo,bean.getCover(),true);
    }
}